#!/bin/bash
PROJECT_PATH=/home/gaoweii/Gitee/web_admin/terminal
#clean
rm -rf /home/gaoweii/Gitee/web_admin/logs/terminal/terminal.log
rm -rf $PROJECT_PATH/build
rm -rf $PROJECT_PATH/my_terminal.out

#build
mkdir $PROJECT_PATH/build
cd $PROJECT_PATH/build
cmake ..
make
mv $PROJECT_PATH/build/my_terminal $PROJECT_PATH/my_terminal.out
chmod +x $PROJECT_PATH/my_terminal.out
